Integrand size = 31, antiderivative size = 401 \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=-\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h+(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}-\frac {n \operatorname {PolyLog}\left (2,\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {n \operatorname {PolyLog}\left (2,\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h+(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}} \]
[Out]
Time = 0.47 (sec) , antiderivative size = 401, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {2576, 2404, 2354, 2438} \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=-\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 (a+b x) \left (c^2 h-c d g+d^2 f\right )}{(c+d x) \left (-\sqrt {g^2-4 f h} (b c-a d)+2 a c h-a d g-b c g+2 b d f\right )}\right )}{\sqrt {g^2-4 f h}}+\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 (a+b x) \left (c^2 h-c d g+d^2 f\right )}{(c+d x) \left (\sqrt {g^2-4 f h} (b c-a d)+2 a c h-a d g-b c g+2 b d f\right )}\right )}{\sqrt {g^2-4 f h}}-\frac {n \operatorname {PolyLog}\left (2,\frac {2 \left (h c^2-d g c+d^2 f\right ) (a+b x)}{\left (-\sqrt {g^2-4 f h} (b c-a d)+2 b d f-b c g-a d g+2 a c h\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {n \operatorname {PolyLog}\left (2,\frac {2 \left (h c^2-d g c+d^2 f\right ) (a+b x)}{\left (\sqrt {g^2-4 f h} (b c-a d)+2 b d f-b c g-a d g+2 a c h\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}} \]
[In]
[Out]
Rule 2354
Rule 2404
Rule 2438
Rule 2576
Rubi steps \begin{align*} \text {integral}& = (b c-a d) \text {Subst}\left (\int \frac {\log \left (e x^n\right )}{b^2 f-a b g+a^2 h-(2 b d f-b c g-a d g+2 a c h) x+\left (d^2 f-c d g+c^2 h\right ) x^2} \, dx,x,\frac {a+b x}{c+d x}\right ) \\ & = (b c-a d) \text {Subst}\left (\int \left (\frac {2 \left (d^2 f-c d g+c^2 h\right ) \log \left (e x^n\right )}{(b c-a d) \sqrt {g^2-4 f h} \left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}-2 \left (d^2 f-c d g+c^2 h\right ) x\right )}+\frac {2 \left (d^2 f-c d g+c^2 h\right ) \log \left (e x^n\right )}{(b c-a d) \sqrt {g^2-4 f h} \left (-2 b d f+b c g+a d g-2 a c h-(b c-a d) \sqrt {g^2-4 f h}+2 \left (d^2 f-c d g+c^2 h\right ) x\right )}\right ) \, dx,x,\frac {a+b x}{c+d x}\right ) \\ & = \frac {\left (2 \left (d^2 f-c d g+c^2 h\right )\right ) \text {Subst}\left (\int \frac {\log \left (e x^n\right )}{2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}-2 \left (d^2 f-c d g+c^2 h\right ) x} \, dx,x,\frac {a+b x}{c+d x}\right )}{\sqrt {g^2-4 f h}}+\frac {\left (2 \left (d^2 f-c d g+c^2 h\right )\right ) \text {Subst}\left (\int \frac {\log \left (e x^n\right )}{-2 b d f+b c g+a d g-2 a c h-(b c-a d) \sqrt {g^2-4 f h}+2 \left (d^2 f-c d g+c^2 h\right ) x} \, dx,x,\frac {a+b x}{c+d x}\right )}{\sqrt {g^2-4 f h}} \\ & = -\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h+(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}-\frac {n \text {Subst}\left (\int \frac {\log \left (1+\frac {2 \left (d^2 f-c d g+c^2 h\right ) x}{-2 b d f+b c g+a d g-2 a c h-(b c-a d) \sqrt {g^2-4 f h}}\right )}{x} \, dx,x,\frac {a+b x}{c+d x}\right )}{\sqrt {g^2-4 f h}}+\frac {n \text {Subst}\left (\int \frac {\log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) x}{2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}}\right )}{x} \, dx,x,\frac {a+b x}{c+d x}\right )}{\sqrt {g^2-4 f h}} \\ & = -\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (1-\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h+(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}-\frac {n \text {Li}_2\left (\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h-(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}}+\frac {n \text {Li}_2\left (\frac {2 \left (d^2 f-c d g+c^2 h\right ) (a+b x)}{\left (2 b d f-b c g-a d g+2 a c h+(b c-a d) \sqrt {g^2-4 f h}\right ) (c+d x)}\right )}{\sqrt {g^2-4 f h}} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 515, normalized size of antiderivative = 1.28 \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\frac {-n \log \left (\frac {2 h (a+b x)}{-b g+2 a h+b \sqrt {g^2-4 f h}}\right ) \log \left (g-\sqrt {g^2-4 f h}+2 h x\right )+\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (g-\sqrt {g^2-4 f h}+2 h x\right )+n \log \left (\frac {2 h (c+d x)}{-d g+2 c h+d \sqrt {g^2-4 f h}}\right ) \log \left (g-\sqrt {g^2-4 f h}+2 h x\right )+n \log \left (\frac {2 h (a+b x)}{2 a h-b \left (g+\sqrt {g^2-4 f h}\right )}\right ) \log \left (g+\sqrt {g^2-4 f h}+2 h x\right )-\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \log \left (g+\sqrt {g^2-4 f h}+2 h x\right )-n \log \left (\frac {2 h (c+d x)}{2 c h-d \left (g+\sqrt {g^2-4 f h}\right )}\right ) \log \left (g+\sqrt {g^2-4 f h}+2 h x\right )+n \operatorname {PolyLog}\left (2,\frac {d \left (-g+\sqrt {g^2-4 f h}-2 h x\right )}{-d g+2 c h+d \sqrt {g^2-4 f h}}\right )-n \operatorname {PolyLog}\left (2,\frac {b \left (-g+\sqrt {g^2-4 f h}-2 h x\right )}{2 a h+b \left (-g+\sqrt {g^2-4 f h}\right )}\right )+n \operatorname {PolyLog}\left (2,\frac {b \left (g+\sqrt {g^2-4 f h}+2 h x\right )}{-2 a h+b \left (g+\sqrt {g^2-4 f h}\right )}\right )-n \operatorname {PolyLog}\left (2,\frac {d \left (g+\sqrt {g^2-4 f h}+2 h x\right )}{-2 c h+d \left (g+\sqrt {g^2-4 f h}\right )}\right )}{\sqrt {g^2-4 f h}} \]
[In]
[Out]
\[\int \frac {\ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )}{h \,x^{2}+g x +f}d x\]
[In]
[Out]
\[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\int { \frac {\log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right )}{h x^{2} + g x + f} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\int { \frac {\log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right )}{h x^{2} + g x + f} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x+h x^2} \, dx=\int \frac {\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}{h\,x^2+g\,x+f} \,d x \]
[In]
[Out]